package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.github.pagehelper.Page;

public interface CustomerDao {

    Page<Customer> selectPage(String customerName);

    /**
     * 根据id查询对象
     * @param customerId
     * @return
     */
    Customer selectCustomer(Integer customerId);

    /**
     * 添加
     * @param customer
     */
    void save(Customer customer);

    /**
     * 修改
     * @param customer
     */
    void update(Customer customer);

    /**
     * 删除
     * @param ids
     */
    void delete(String ids);
}
